package com.zxl.grocerymicroservicewechatmeal.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: zxl
 * @Description: 商品详情 前端需要多少字段就返回多少字段，出于安全和隐私（产品和技术方面的）
 * @Date: Created in 22:07 2017/11/15
 * @Modified By:
 */
@Data
public class ProductInfoVO implements Serializable{

    private static final long serialVersionUID = -677522617795768497L;
    @JsonProperty("id")
    private String productId;

    @JsonProperty("name")
    private String productName;

    @JsonProperty("price")
    private BigDecimal productPrice;

    @JsonProperty("description")
    private String productDescription;

    @JsonProperty("icon")
    private String productIcon;
}

